$(function () {

    /**
     * 患者详细信息页面中发保存按钮
     */
    $("#btn_query").click(function () {
        var patientId = $("#patientId").val()
        var patientName = $("#patientName").val()
        var patientGender = $("#patientGender option:selected").val()
        var patientBieth = $("#patientBieth").val()
        var sel_national = $("#sel_national  option:selected").val()
        var patHeight = $("#patHeight").val()
        var patWeight = $("#patWeight").val()
        var patLearning = $("#patLearning").val()
        var patHemoglobin = $("#patHemoglobin").val()
        console.log(patientId)
        console.log(patientName)
        console.log(patientGender)
        console.log(patientBieth)
        console.log(sel_national)
        console.log(patHeight)
        console.log(patWeight)
        console.log(patLearning)
        console.log(patHemoglobin)
        $.ajax({
            url: "../../patientSignsAnemia/updatePatientInformationSheet",
            type: "post",
            data: {
                patientIds: patientId,
                patientName: patientName,
                dateOfBirths: patientBieth,
                gender: patientGender,
                nationalId: sel_national,
                nowTheWeight: patWeight,
                height: patHeight,
                redBloodCells: patLearning,
                hemoglobin: patHemoglobin
            },
            dataType: "json",
            success: function (map) {
                alert("保存成功")
                window.location.reload();
            }
        })
    })
})